<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>layout 微信菜单设置 - Layui</title>
<link rel="stylesheet" href="/layui-v2.0.1/layui/css/layui.css">
<link rel="stylesheet" href="/css/admin.css">

</head>
<body>

<div class="layui-layout layui-layout-admin">
       @include('admin.header')
  <div class="layui-side layui-bg-black">
    <div class="layui-side-scroll">
      <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
       @include('admin.leftadmin')
    </div>
  </div>
  <div class="layui-body">
    <!-- 内容主体区域 -->
    <form action="doaddsubbutton" method="post" style="width:500px;margin-top: 20px;margin-left: 50px">
      <input type="hidden" name="id" value="<?php echo $id;?>">
      <input type="hidden" name="pater" value="<?php echo $button_name;?>">
      <div class="layui-form-item">
        <label class="layui-form-label">菜单等级</label>
        <div class="layui-input-block">
          <select class="lien" lay-filter="aihao" style="height:37px;width:100px" name="button_level" id="button_level1">
            <option value="一级菜单" >一级菜单</option>
            <option value="二级菜单" selected="">二级菜单</option>
          </select>
        </div>
      </div>

      <div class="layui-form-item">
        <label class="layui-form-label">菜单名称</label>
        <div class="layui-input-block">
          <input type="text" name="button_name" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input" value="">
        </div>
      </div>

      <div class="layui-form-item">
        <label class="layui-form-label">菜单类型</label>
        <div class="layui-input-block">
          <select class="lien" lay-filter="aihao" style="height:37px;width:100px" name="button_type" id="button_type1" >
            <option value="view" selected="">链接</option>
            <option value="click">按钮</option>
          </select>
        </div>
      </div>

      <div class="layui-form-item">
        <label class="layui-form-label">url地址</label>
        <div class="layui-input-block">
          <input type="text" name="button_url" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input" value="">
        </div>
      </div>
      <div class="layui-form-item">
        <div class="layui-input-block">
          <button class="layui-btn" lay-submit="" lay-filter="demo1">添加</button>
        </div>
      </div>
 
  </form>

  </div>
  <div class="layui-footer">
    <!-- 底部固定区域 -->
    © layui.com - 底部固定区域
  </div>
</div>
<script src="/layui-v2.0.1/layui/layui.js"></script>

<!-- <script>
layui.use(['form', 'layedit', 'laydate','jquery'], function(){
  var form = layui.form
  ,layer = layui.layer
  ,layedit = layui.layedit
  ,laydate = layui.laydate;
  var $ = layui.jquery;

  $(function(){
    var button_level = $('#button_level').val();
    var button_type = $('#button_type').val(); 
    $('#button_type1').val(button_type);
    $('#button_level1').val(button_level);
})

  

  
  
});
</script>
 -->

